.deep-thinking-selector {
  position: relative;
  display: inline-block;
  min-width: 140px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.selector-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.selector-header:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.mode-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-name {
  flex: 1;
  font-size: 14px;
  color: #495057;
  white-space: nowrap;
}

.selector-arrow {
  font-size: 10px;
  color: #adb5bd;
  transition: transform 0.2s ease;
}

.selector-arrow.open {
  transform: rotate(180deg);
}

.selector-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
}

.mode-option:last-child {
  border-bottom: none;
}

.mode-option:hover {
  background-color: #f8f9fa;
}

.mode-option.active {
  background-color: #e9ecef;
}

.mode-info {
  flex: 1;
  min-width: 0;
}

.mode-info .mode-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 2px;
}

.mode-info .mode-desc {
  font-size: 12px;
  color: #6c757d;
  white-space: normal;
}

.mode-check {
  color: #2196f3;
  font-size: 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .selector-header {
    background-color: #343a40;
    border-color: #495057;
  }

  .selector-header:hover {
    background-color: #495057;
    border-color: #6c757d;
  }

  .mode-name {
    color: #e9ecef;
  }

  .selector-arrow {
    color: #6c757d;
  }

  .selector-dropdown {
    background-color: #343a40;
    border-color: #495057;
  }

  .mode-option {
    border-bottom-color: #495057;
  }

  .mode-option:hover {
    background-color: #495057;
  }

  .mode-option.active {
    background-color: #2b3035;
  }

  .mode-info .mode-name {
    color: #e9ecef;
  }

  .mode-info .mode-desc {
    color: #adb5bd;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .deep-thinking-selector {
    min-width: 120px;
  }

  .selector-header {
    padding: 6px 10px;
  }

  .mode-icon {
    font-size: 14px;
  }

  .mode-name {
    font-size: 13px;
  }

  .mode-option {
    padding: 8px 10px;
  }

  .mode-info .mode-name {
    font-size: 13px;
  }

  .mode-info .mode-desc {
    font-size: 11px;
  }
}
